package javaapplication20;
import java.util.*;

public class javaapplication20 {    
    public static void main (String[] args){ 
        foreach(new HashSet());
    }
    private static void foreach(Collection collection){
        Inerator elements = collection.iterator();
        while(elements,hasNext()){
        System.out.println(elements.next());
        }
    }
}